package plots;


/**
 * Factory class for plot-related classes.
 */
public abstract class PlotFactory {

	/**
	 * Instantiates a new plot regenerator.
	 * 
	 * @param clazz actual fully qualified class name
	 * @return the new instance
	 * @throws Exception something went wrong
	 */
	public static PlotRegenerator newRegenerator(String clazz) throws Exception {
		return (PlotRegenerator) Class.forName(clazz).getDeclaredConstructor().newInstance();
	}
}
